import Vue from 'vue';
import App from './App.vue';
import router  from './router';
import FastClick from 'fastclick'
import store from './store'
import { sync } from 'vuex-router-sync'
import './permission'
import APlayer from '@moefe/vue-aplayer';
import baseUtil from "@/utils/baseUtil";
import qUtil from "@/utils/queryUtil";
//import 'vant/lib/icon/local.css';
import "@/assets/styles/public.css";
import "@/assets/styles/iconfont.css";

import { Lazyload } from 'vant';

Vue.use(Lazyload, {
    preLoad: 1,
    error: '/images/defaultimg.jpg',
    loading: '/images/defaultimg.jpg',
    attempt: 3
});

Vue.prototype.baseUtil = baseUtil;
Vue.prototype.qUtil = qUtil;

Vue.use(APlayer, {
    defaultCover: '/images/defaultimg.jpg',
    productionTip: false,
});

sync(store, router);
FastClick.attach(document.body)
// FastClick.attach(document.body)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
